<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01_弹性布局入门</title>
    <style>
        .container{
            display: flex;
            background-color: yellow;
        }
        .container>.item{
            background-color: #0aa1ed;
            width: 200px;
            height: 200px;
            border: black 1px solid;
        }
        .container2{
            display: flex;
            background-color: yellow;
            flex-direction: row-reverse;
            flex-direction: column;
            flex-direction: column-reverse;
            flex-direction: row;

            flex-wrap: nowrap;
            flex-wrap: wrap;
        }
        .container2>.item{
            background-color: #0aa1ed;
            width: 200px;
            height: 200px;
            border: black 1px solid;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
</div>
<div class="container2">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
    <div class="item">4</div>
    <div class="item">5</div>
    <div class="item">6</div>
    <div class="item">7</div>
    <div class="item">7</div>
    <div class="item">7</div>
    <div class="item">7</div>
    <div class="item">7</div>
    <div class="item">7</div>
    <div class="item">7</div>
    <div class="item">7</div>
    <div class="item">7</div>
    <div class="item">7</div>
</div>
</body>
</html>